package com.ztjy.purchase.dao;

import com.ztjy.bean.CPurchase;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.sql.Date;
import java.util.List;
@Mapper
@Repository
public interface CPurchaseDao {
    boolean deleteByPrimaryKey(String purchaseId);

    int insert(CPurchase record);

    boolean insertSelective(CPurchase record);

    CPurchase selectByPrimaryKey(String purchaseId);

    List<CPurchase> selectCPurchaseByCount(CPurchase cPurchase, @Param("mintime") Date mintime,@Param("maxtime") Date maxtime, @Param("mintotal") Double mintotal, @Param("maxtotal") Double maxtotal);

    List<CPurchase> findAllCPurchase(CPurchase purchase);

    List<CPurchase> findListByIdCPurchase(String purchaseId);

    boolean updateByPrimaryKeySelective(CPurchase record);

    int updateByPrimaryKey(CPurchase record);

    List<CPurchase> findNoCK();

}